import { createStore, applyMiddleware } from 'redux'
import { combineReducers } from 'redux-immutable'
import thunk from 'redux-thunk'

import commonReducer from './modules/common'
import adminReducer from './modules/admin'
import tableReducer from './modules/tablePage'

const reducer = combineReducers({
  common: commonReducer,
  admin:adminReducer,
  tablepage:tableReducer
})

const store = createStore(reducer, applyMiddleware(thunk))

export default store